package ualrcdg.shared.responses;

/**
 * Simple implementation of the "Register Player Response" object. See CDG XML Specifications: Server Responses: Register Player. 
 */
public class RegisterPlayerResponse extends CDGResponse
{
	public static final String responseTag = "registerPlayerResponse";
	public static final String dtdName = "playerOperations.dtd";

	public final boolean response;
	
	/**
	 * Primary constructor
	 *
	 * @param requestId the requestId of the RegisterPlayerResponse object to be created
	 * @param response the response of the RegisterPlayerResponse object to be created
	 */
	public RegisterPlayerResponse( String requestId, boolean response )
	{
		super( requestId );
		
		this.response = response;
	}

	/*
	 * @see ualrcdg.shared.responses.CDGResponse#toString()
	 */
	@Override
	public String toString( )
	{
		return "RegisterPlayerResponse [<" + super.toString( ) + "> response=" + response + "]";
	}
}
